package com.tt.plat8.user.sercurity;

import com.tt.plat8.api.security.IRoleProvider;
import com.tt.plat8.api.user.IRoleCode;
import com.tt.plat8.user.api.security.dao.IRoleCodeDao;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: tangtao
 * Date: 14-2-20
 * Time: 下午3:58
 * To change this template use File | Settings | File Templates.
 */
public class DefaultRoleProvider implements IRoleProvider {

    private IRoleCodeDao roleCodeDao;

    public void setRoleCodeDao(IRoleCodeDao roleCodeDao) {
        this.roleCodeDao = roleCodeDao;
    }

    @Override
    public List<IRoleCode> getRoleCodes() {
        return roleCodeDao.findAllRoleCode();
    }


}
